<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: 'App',
    data () {
      var vm = this;
      vm.$router.beforeResolve((to, from, next) => {
        vm.$history.from = from.path;
        next();
      });
      return {
        nodeEnv: process.env.NODE_ENV
      };
    },
    methods: {
    },
    mounted: function () {
    }
  };
</script>

<style lang="scss">
@import '~@assets/css/style.scss';
.btn {
  background: orange;
  color: #fff;
  width: 280px;
  height: 35px;
  line-height: 35px;
  border-radius: 10px;
  margin: 20px;
  text-align: center;
  &.dev {
    background: red;
  }
}
</style>
